﻿@model Mvc.HelpDesk.Data.INCIDENTE

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Incidente</legend>

        @Html.HiddenFor(model => model.IDINCIDENTE)

        <div class="editor-label">
            Atendente
        </div>
        <div class="editor-field">
            @Html.DropDownList("IDATENDENTE", null, new { disabled = "disable" })
            @Html.ValidationMessageFor(model => model.IDATENDENTE)
        </div>

        <div class="editor-label">
            Solicitante
        </div>
        <div class="editor-field">
            @Html.DropDownList("IDSOLICITANTE")
            @Html.ValidationMessageFor(model => model.IDSOLICITANTE)
        </div>

        <div class="editor-label">
           Categoria
        </div>
        <div class="editor-field">
            @Html.DropDownList("IDSUBCATEGORIA")
            @Html.ValidationMessageFor(model => model.IDSUBCATEGORIA)
        </div>


        <div class="editor-label">
            Sub Categoria
        </div>
        <div class="editor-field">
            @Html.DropDownList("IDSUBCATEGORIA")
            @Html.ValidationMessageFor(model => model.IDSUBCATEGORIA)
        </div>

        <div class="editor-label">
            Status
        </div>
        <div class="editor-field">
            @Html.DropDownList("IDSTATUS")
        </div>
        <div class="editor-label">
            Prioridade
        </div>
        <div class="editor-field">
            @Html.DropDownList("IDPRIORIDADE", null, new { disabled = "disable" })
        </div>
        
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
